package com.xuelang.pipeline.infrastructure.resource.converter;

import com.xuelang.pipeline.domain.resource.ToolChain;
import com.xuelang.pipeline.infrastructure.resource.dataobject.ToolChainDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 工具链实体与工具链DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface ToolChainToToolChainDOConverter {

    ToolChainToToolChainDOConverter INSTANCE = Mappers.getMapper(ToolChainToToolChainDOConverter.class);

    /**
     * ToolChain转化为ToolChainDO
     * @param toolChain
     * @return
     */
    ToolChainDO toolChainToToolChainDO(ToolChain toolChain);

    /**
     * ToolChainDO转化为ToolChain
     * @param toolChainDO
     * @return
     */
    ToolChain toolChainDOToToolChain(ToolChainDO toolChainDO);

}
